<script setup lang="ts">
import CommonConfig from "./CommonConfig.vue";
import { type FormDesignerComponents } from "../FormComponentMixin";
const config = defineModel<FormDesignerComponents>("config");
</script>

<template>
  <CommonConfig v-model:config="config" />
  <el-form-item label="提示文字">
    <el-input v-model="config.props.placeholder" placeholder="输入提示" />
  </el-form-item>
  <el-form-item label="默认值">
    <el-radio-group v-model="config.props.defaultLogin">
      <el-radio label="无" :value="false"></el-radio>
      <el-radio label="当前登录人员部门" :value="true"></el-radio>
    </el-radio-group>
  </el-form-item>
  <el-form-item label="是否多选">
    <el-switch v-model="config.props.multiple" />
  </el-form-item>
  <el-form-item label="隐藏名称">
    <el-switch v-model="config.props.hideLabel" />
  </el-form-item>
  <el-form-item label="是否必填">
    <el-switch v-model="config.props.required" />
  </el-form-item>
</template>

<style lang="scss" scoped></style>
